#!/usr/bin/env python
import httplib

def httpaccess(webhost = "www.google.com"):
	con = httplib.HTTPConnection(webhost)
	file = raw_input()
	con.request("GET",file)
	response = con.getresponse()
	print response.read()
	print response.status, response.reason
	return response.read()
def stressload(webhost = "http://localhost:80"):
	while 1:
		con = httplib.HTTPConnection(webhost)
		con.request("POST", "/Logs")
		response = con.getresponse()
		print response.status, response.reason


def main():
	httpaccess("127.0.0.1:80")
	
	return 0

if __name__ == '__main__': main()
